package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {

    void delete(Long id);

    void update(Employee employee,Long[] ids);

    void insert(Employee employee,Long[] ids);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    PageInfo<Employee> query(QueryObject qo);

    Employee login(String username, String password);

    void alterPassword(String oldPassword, String newPassword,Long id);

    List<String> selectByPermission(Long id);

    Employee checkName(String username);

    Workbook exportXls();

    List<String> importXls(MultipartFile file) throws IOException;

    void repeatPassword(Long id);

    void alterStatus(Employee employee);
}
